<div class="adtb medium-12 column" style="padding:0;">
<table class="" cellspacing='0' style="width:100%;">
	<thead>
		<tr>
			<th><?=sizeof($active)?> Companies</th>
			<th>Reviews</th>
			<th>Visitors</th>
			<th>Followers</th>
			<th>Workers</th>
            <th class="text-center">Status</th>
			<th class="text-center">Action</th>
		</tr>
	</thead>
    
	<tbody>
	<?php foreach ($active as $value) { ?>
		<tr>
			<td><a class="link"><?=$value->name?></a></td>
			<td><?=(!$value->stars)?0:$value->stars?> Stars</td>
			<td><?=CompanyVisitors::countVisitors($value->company_id)?></td>
			<td><?=CompanyFollowers::listTotalFollowers($value->company_id)?></td>
			<td><?=(!$value->noofworkers)?0:$value->noofworkers?></td>
            <td class="text-center"><a class="alert button" style="padding:0;margin:0;background:none;color:green;">Active</a></td>
			<td class="text-center">
                <a  cid="<?=$value->company_id?>" class="tiny success radius button btnSuspend" style="padding:0.2rem;margin:0;">Suspend</a>
                <a  cid="<?=$value->company_id?>" data-reveal-id="alertconfirm" class="tiny alert radius button btnDelete" style="padding:0.2rem;margin:0;">Delete</a>
            </td>
		</tr>
    <?php } ?>
	</tbody>
</table>

<ul class="right connection-pagination pagination">
  <li class="arrow unavailable"><a href="">&laquo;</a></li>
  <li class="current"><a href="">1</a></li>
  <li><a href="">2</a></li>
  <li><a href="">3</a></li>
  <li><a href="">4</a></li>
  <li class="unavailable"><a href="">&hellip;</a></li>
  <li><a href="">12</a></li>
  <li><a href="">13</a></li>
  <li class="arrow"><a href="">&raquo;</a></li>
</ul>
</div>



